﻿using System;

// ReSharper disable once CheckNamespace

namespace Web.Constant.Parameter
{
    public static class Information
    {
        public static String Domain = "echizenryoma.info";
        public static String ApplicationName = "个人资产管理处";
        public static String Author = "Echizen Ryoma";
        public static String Address = "四川省成都市成华区二仙桥东三路1号 成都理工大学";
        public static String QQ = "1095042567";
        public static String RootWebConfig;
        public static Boolean IsNeedSSL = false;
        public static Int32 HttpsPort = 4443;
    }

    public static class Email
    {
        public static String EmailFrom = "admin@" + Information.Domain;
        public static String EmailPassword = "ER@WinZL940108";
        public static String SmtpServer = "smtp." + Information.Domain;
        public static String IcmpServer = "imap." + Information.Domain;
        public static String Pop3Server = "pop." + Information.Domain;
        public static String SupportEmail = "support@" + Information.Domain;
        public static String SaleEmail = "sale@" + Information.Domain;
    }

    public static class Database
    {
        public static String DataPassword = "Access2013";
        public static String ExpenseDataSource = @"|DataDirectory|\Expense.accdb";
        public static String AccountDataSource = @"|DataDirectory|\Account.accdb";

        public static String ExpenseConnectionString =
            String.Format("Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0};Jet OLEDB:Database Password={1}",
                ExpenseDataSource, DataPassword);

        public static String AccountConnectionString =
            String.Format("Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0};Jet OLEDB:Database Password={1}",
                AccountDataSource, DataPassword);
    }
}